//! @Author: DengLibin
//! @Date: Create in 2024-07-25 18:02:17
//! @Description:

mod test {
    use my_util_lib::log_util;
    use rust_my_tools::component::comp_7z::{compress_dir_to_zip, decompress_file};


     /// @Author: DengLibin
     /// @Date: Create in 2024-07-26 09:35:02
     /// @Description: 解压
    #[test]
    pub fn test_decompress() {
        let _ =log_util::init_log(r"log4rs.yaml");
        decompress_file(
            r#"D:\software\7z\7z.exe"#,
            r#"d:\同步邓.zip"#,
            r#"d:\同步邓.zip.out"#,
        )
        .unwrap();
    }

     /// @Author: DengLibin
     /// @Date: Create in 2024-07-26 09:35:34
     /// @Description: 压缩
    #[test]
    pub fn test_compress(){
        let _ =log_util::init_log(r"log4rs.yaml");
        compress_dir_to_zip(
            r#"D:\software\7z\7z.exe"#,
            r#"C:\Users\denglibin\Desktop\专题"#,
            r#"C:\Users\denglibin\Desktop\专题.zip"#,
        ).unwrap();
    }
}
